﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Monopoly;

namespace Monopoly_AcceptanceTest
{
    [TestClass]
    public class TestGameOptionsSystemOperation
    {
        public TestGameOptionsSystemOperation()
        {
        }

        private TestContext testContextInstance;
        private MGame m_Game;

        [TestInitialize]
        public void SetUp()
        {
            m_Game = new MGame();
        }

        #region Additional test attributes
        //
        // You can use the following additional attributes as you write your tests:
        //
        // Use ClassInitialize to run code before running the first test in the class
        // [ClassInitialize()]
        // public static void MyClassInitialize(TestContext testContext) { }
        //
        // Use ClassCleanup to run code after all tests in a class have run
        // [ClassCleanup()]
        // public static void MyClassCleanup() { }
        //
        // Use TestInitialize to run code before running each test 
        [TestInitialize()]
        public void MyTestInitialize()
        {
            m_Game = new MGame();
        }
        //
        // Use TestCleanup to run code after each test has run
        // [TestCleanup()]
        // public void MyTestCleanup() { }
        //
        #endregion



        #region SO: PlayerNumber

        [TestMethod]
        public void PlayerNumber_WhenTypical()
        {
            //m_Game.PlayerNumber = 10;
            //Assert.Equals(10, m_Game.PlayerNumber);
        }

        [TestMethod, ExpectedException(typeof(ArgumentException))]
        public void PlayerNumber_WhenIllegle()
        {
            //m_Game.PlayerNumber = -10;
        }

        #endregion

        #region SO: MaxRoundNumber

        [TestMethod]
        public void MaxRoundNumber_WhenTypical()
        {
            //m_Game.MaxRoundNumber = 10;
            //Assert.Equals(10, m_Game.MaxRoundNumber);
        }

        [TestMethod, ExpectedException(typeof(ArgumentException))]
        public void MaxRoundNumber_WhenIllegle()
        {
            //m_Game.MaxRoundNumber = -10;
        }

        #endregion
    }
}
